#!/usr/bin/env python
# -*- coding: utf-8 -*-

from flask import Flask
from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__, instance_relative_config=True)

app.config.from_object('config')    # 加载配置 app.config 将会是个配置字典
app.config.from_pyfile('config.py')  # 从instance文件夹中加载配置


db = SQLAlchemy(app)




